<template>
    <div>

    </div>
</template>

<script setup>
var blood = 100;
var power = 200;

function f1(){
    console.log('i am f1');
}
var cat = {
    age:3,
    blood:blood,
    power,
    f1
}
console.log(cat);
cat.f1();

console.log('=========');
var dog={
    say(){
        console.log('哇呜！');
    }
}
dog.say();
</script>

<style lang="scss" scoped>

</style>